package cc.dowell.controller;

import cc.dowell.service.CarouselService;
import cc.dowell.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CarouselController {


    @Autowired
    private CarouselService carouselService;

    @GetMapping("/carousel")
    public R<?> getCarousel() {
        return carouselService.getCarousel();
    }

}